Fix non-SMP build, broken by the previous changeset.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 31 Aug 2005 14:53:43 +0000 (14:53 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 31 Aug 2005 14:53:43 +0000 (14:53 +0000)
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/include/asm-xen/asm-i386/system.h
linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/system.h

index 92af14b39c52c54dea8a85684962702a9f91c0ff..3aa047dc9de5a15065ceb83e6087796bcdf8644c 100644 (file)
@@ -562,8 +562,13 @@ do {                                                                       \
 #define local_irq_enable()     __sti()
 
 /* Don't use smp_processor_id: this is called in debug versions of that fn. */
+#ifdef CONFIG_SMP
 #define irqs_disabled()                        \
     HYPERVISOR_shared_info->vcpu_data[__smp_processor_id()].evtchn_upcall_mask
+#else
+#define irqs_disabled()                        \
+    HYPERVISOR_shared_info->vcpu_data[0].evtchn_upcall_mask
+#endif
 
 /*
  * disable hlt during certain critical i/o operations
index 3fc3c550c31af67945f0a5fad5f8cfb14ff62c20..c38dcb829f95791699c3761a353c635751e7b46c 100644 (file)
@@ -388,8 +388,13 @@ void cpu_idle_wait(void);
 #define local_irq_enable()     __sti()
 
 /* Don't use smp_processor_id: this is called in debug versions of that fn. */
+#ifdef CONFIG_SMP
 #define irqs_disabled()                        \
     HYPERVISOR_shared_info->vcpu_data[__smp_processor_id()].evtchn_upcall_mask
+#else
+#define irqs_disabled()                        \
+    HYPERVISOR_shared_info->vcpu_data[0].evtchn_upcall_mask
+#endif
 
 /*
  * disable hlt during certain critical i/o operations